package com.love.marriage.datingInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.datingInfo.entity.DatingInfo;
import com.love.marriage.datingInfo.vo.DatingInfoResVo;
import com.love.marriage.datingInfo.vo.DatingInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  约会表 mapper
 * author:       alex
 * createDate:   2024-10-15 20:28:51
 * version:      1.0.0
 */
@Mapper
public interface DatingInfoMapper extends BaseMapper<DatingInfo> {

    Page<DatingInfoResVo> getPage(Page<DatingInfoVo> page, @Param("datingInfoVo") DatingInfoVo datingInfoVo,
                                  @Param("userId") Long userId);

    List<DatingInfoResVo> getList(@Param("datingInfoVo") DatingInfoVo datingInfoVo,
                                  @Param("userId") Long userId);

    DatingInfoResVo queryDatingInfo(@Param("id") Long id,
                                    @Param("userId") Long userId);
}
